/**
 * Created by zyg on 16/2/16.
 */
var webPage = require('webpage');


module.exports = function(){

  var page = webPage.create();
  page.settings.resourceTimeout = 10000;
  page.settings.userAgent = 'Mozilla/5.0 (Linux; Android 4.4.4; en-us; Nexus 4 Build/JOP40D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2307.2 Mobile Safari/537.36';

  page.onConsoleMessage = function (message) {
    console.log(' CONSOLE ==>',message)
  };

  return page;
};